//
//  Molette.m
//  Metronome
//
//  Created by Thomas Dupont on 28/09/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "CocoaMolette.h"
#import "MetronomeKit.h"


@implementation CocoaMolette

- (void)awakeFromNib
{
	[molette setMaxValue:kMoletteMaxValue];
	[molette setMinValue:kMoletteMinValue];
	moletteValue = kMoletteMinValue;
}

- (float)position
{
	return moletteValue;
}

- (IBAction)setValue:(id)sender
{
	moletteValue = [(NSSlider*)sender floatValue] / kMoletteMaxValue;
}

@end
